package ecustom.p002002.api;

import com.alibaba.fastjson.JSONObject;
import ecustom.common.AbstractWebAction;
import ecustom.p002002.service.SampleService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * path: /api/ecustom/common/p002002/sample
 */
public class SampleAction extends AbstractWebAction {

	private SampleService sampleService = new SampleService();

	/**
	 * path: /api/ecustom/common/p002002/sample/list
	 */
	public JSONObject list(HttpServletRequest req, HttpServletResponse res) {
		return ok(sampleService.list());
	}
}
